package com.fc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;


@Builder
@Data
public class Attendance implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long driverId;
    @JsonFormat(pattern = "HH:mm:ss")
    private LocalDateTime clockTime;
    @JsonFormat(pattern = "yyyy年MM月dd日")
    private LocalDate clockDate;
    private String location;
    private String vehiclePlate;//车牌号
    private Integer clockType;//1表示上班，2表示下班
}
